package com.ruoyi.his.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 盘点记录对象 t_medical_drugs_inventory_record
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
public class TMedicalDrugsInventoryRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 盘点记录Id */
    private Long recordid;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String name;

    /** 规格 */
    @Excel(name = "规格")
    private String unit;

    /** 账面数量 */
    @Excel(name = "账面数量")
    private Long papernumber;

    /** 实存数量 */
    @Excel(name = "实存数量")
    private Long existnumber;

    /** 购进单价 */
    @Excel(name = "购进单价")
    private Long buyunitprice;

    /** 零售单价 */
    @Excel(name = "零售单价")
    private Long sellunitprice;

    /** 盘盈数量 */
    @Excel(name = "盘盈数量")
    private Long inventorysurplusno;

    /** 盘点时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createtimes;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    public void setRecordid(Long recordid) 
    {
        this.recordid = recordid;
    }

    public Long getRecordid() 
    {
        return recordid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setPapernumber(Long papernumber) 
    {
        this.papernumber = papernumber;
    }

    public Long getPapernumber() 
    {
        return papernumber;
    }
    public void setExistnumber(Long existnumber) 
    {
        this.existnumber = existnumber;
    }

    public Long getExistnumber() 
    {
        return existnumber;
    }
    public void setBuyunitprice(Long buyunitprice) 
    {
        this.buyunitprice = buyunitprice;
    }

    public Long getBuyunitprice() 
    {
        return buyunitprice;
    }
    public void setSellunitprice(Long sellunitprice) 
    {
        this.sellunitprice = sellunitprice;
    }

    public Long getSellunitprice() 
    {
        return sellunitprice;
    }
    public void setInventorysurplusno(Long inventorysurplusno) 
    {
        this.inventorysurplusno = inventorysurplusno;
    }

    public Long getInventorysurplusno() 
    {
        return inventorysurplusno;
    }
    public void setCreatetimes(Date createtimes) 
    {
        this.createtimes = createtimes;
    }

    public Date getCreatetimes() 
    {
        return createtimes;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("recordid", getRecordid())
            .append("name", getName())
            .append("unit", getUnit())
            .append("papernumber", getPapernumber())
            .append("existnumber", getExistnumber())
            .append("buyunitprice", getBuyunitprice())
            .append("sellunitprice", getSellunitprice())
            .append("inventorysurplusno", getInventorysurplusno())
            .append("createtimes", getCreatetimes())
            .append("remarks", getRemarks())
            .toString();
    }
}
